package com.luoye.lj.platform.model;


import java.util.List;

/*
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 2016/7/4
 * Time: 11:05
 * To change this template use File | Settings | File Templates.
 */
public class UserProfile {
    private long id = -1L;
    private String username;
    private String realName;
    private List<String> unitInfoList;
    private List<String> roleInfoList;
    private String defaultUrl;
    private String email;
    private String mobilePhone;
    private String status;//状态，0正常，1锁定
    private String lastLoginTime;//最近一次登录时间

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<String> getUnitInfoList() {
        return unitInfoList;
    }

    public void setUnitInfoList(List<String> unitInfoList) {
        this.unitInfoList = unitInfoList;
    }

    public List<String> getRoleInfoList() {
        return roleInfoList;
    }

    public void setRoleInfoList(List<String> roleInfoList) {
        this.roleInfoList = roleInfoList;
    }

    public String getDefaultUrl() {
        return defaultUrl;
    }

    public void setDefaultUrl(String defaultUrl) {
        this.defaultUrl = defaultUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public UserProfile(long id, String username, String realName, List<String> unitInfoList, List<String> roleInfoList, String defaultUrl, String email, String mobilePhone, String status, String lastLoginTime) {
        this.id = id;
        this.username = username;
        this.realName = realName;
        this.unitInfoList = unitInfoList;
        this.roleInfoList = roleInfoList;
        this.defaultUrl = defaultUrl;
        this.email = email;
        this.mobilePhone = mobilePhone;
        this.status = status;
        this.lastLoginTime = lastLoginTime;
    }

    public UserProfile() {
    }

    @Override
    public String toString() {
        return "UserProfile{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", realName='" + realName + '\'' +
                ", unitInfoList=" + unitInfoList +
                ", roleInfoList=" + roleInfoList +
                ", defaultUrl='" + defaultUrl + '\'' +
                ", email='" + email + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", status=" + status +
                ", lastLoginTime='" + lastLoginTime + '\'' +
                '}';
    }
}
